
from .api_mysql import ApiMysqlclass

from flask import Flask, request, Blueprint

from . import api_current

app = Flask(__name__)

@api_current.route('/openid', methods=['GET', 'POST'])
    
def openid():

    methods = request.method

    info = request.form

    openid = info.get('openid')

    with ApiMysqlclass() as conn_api:

        result_info = conn_api.current_openid(methods,openid)

    return result_info


if __name__ == '__main__':
    
    app.run(debug = True)
    